<?php /* Smarty version 2.6.16, created on 2011-09-23 16:30:20
         compiled from videoreview.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'nl2br', 'videoreview.tpl', 115, false),)), $this); ?>
<?php echo '
<style type="text/css">
.container {width: 700px; margin: 0px auto;}
ul.tabs {
	margin: 0;
	padding: 0;
	float: left;
	list-style: none;
	height: 32px;
	/*border-bottom: 1px solid #999;*/
	/*border-left: 1px solid #999;*/
	width: 100%;
}
ul.tabs li {
	float: left;
	margin: 0;
	padding: 0;
	height: 31px;
	line-height: 31px;
	border: 1px solid #999;
	border-left: none;
	margin-bottom: -1px;
	background: #e0e0e0;
	overflow: hidden;
	position: relative;
}
ul.tabs li a {
	text-decoration: none;
	color: #000;
	display: block;
	font-size: 1.2em;
	padding: 0 20px;
	/*border: 1px solid #999;*/
	border-bottom: 1px solid #999;
	border-left: 1px solid #999;
	outline: none;
}
ul.tabs li a:hover {
	background: #ccc;
}	
html ul.tabs li.active, html ul.tabs li.active a:hover  {
	background: #F2F2F2;
	border-bottom: 1px solid #F2F2F2;
	
}
.tab_container {
	/*border: 1px solid #999;*/
	border-top: none;
	clear: both;
	float: left; 
	width: 100%;
	background: #F2F2F2;
	-moz-border-radius-bottomright: 5px;
	-khtml-border-radius-bottomright: 5px;
	-webkit-border-bottom-right-radius: 5px;
	-moz-border-radius-bottomleft: 5px;
	-khtml-border-radius-bottomleft: 5px;
	-webkit-border-bottom-left-radius: 5px;
}
.tab_content {
	padding-right: 20px;
	margin-top:10px;
	
}

</style>
<script type="text/javascript">

$(document).ready(function() {

	
	//On Click Event
	$("ul.tabs li").click(function() {
		$("ul.tabs li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tab_content").hide(); //Hide all tab content
		var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active content
		return false;
	});

});
function del_rec()
{ 
  
}
</script>
'; ?>
   
   
   <div class="right-panel">
      <div class="review-title"><h1 title="Review"></h1></div>
      <div class="clear"></div>
      <div class="total-message">New Messages : 15</div>
      <div class="clear"></div>
      <div class="message-list">
	     <div class="container">
           <ul class="tabs">
				<li><a href="#tab1">My Reviews</a></li>
				<li><a href="#tab2" class="active">My Video Reviews</a></li>
				<li><a href="#tab3">Coach Reviews by me</a></li>
				<li><a href="#tab4">Video Reviews by me</a></li>
		
			</ul>
			 <div class="clear"></div>
				<div class="tab_container">
					
					<div id="tab2" class="tab_content" style="margin-top:20px;">
					<?php if ($this->_tpl_vars['Numvideo'] > 0): ?>
					 <?php unset($this->_sections['vdorevrow']);
$this->_sections['vdorevrow']['name'] = 'vdorevrow';
$this->_sections['vdorevrow']['loop'] = is_array($_loop=$this->_tpl_vars['videoReviewArr']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['vdorevrow']['show'] = true;
$this->_sections['vdorevrow']['max'] = $this->_sections['vdorevrow']['loop'];
$this->_sections['vdorevrow']['step'] = 1;
$this->_sections['vdorevrow']['start'] = $this->_sections['vdorevrow']['step'] > 0 ? 0 : $this->_sections['vdorevrow']['loop']-1;
if ($this->_sections['vdorevrow']['show']) {
    $this->_sections['vdorevrow']['total'] = $this->_sections['vdorevrow']['loop'];
    if ($this->_sections['vdorevrow']['total'] == 0)
        $this->_sections['vdorevrow']['show'] = false;
} else
    $this->_sections['vdorevrow']['total'] = 0;
if ($this->_sections['vdorevrow']['show']):

            for ($this->_sections['vdorevrow']['index'] = $this->_sections['vdorevrow']['start'], $this->_sections['vdorevrow']['iteration'] = 1;
                 $this->_sections['vdorevrow']['iteration'] <= $this->_sections['vdorevrow']['total'];
                 $this->_sections['vdorevrow']['index'] += $this->_sections['vdorevrow']['step'], $this->_sections['vdorevrow']['iteration']++):
$this->_sections['vdorevrow']['rownum'] = $this->_sections['vdorevrow']['iteration'];
$this->_sections['vdorevrow']['index_prev'] = $this->_sections['vdorevrow']['index'] - $this->_sections['vdorevrow']['step'];
$this->_sections['vdorevrow']['index_next'] = $this->_sections['vdorevrow']['index'] + $this->_sections['vdorevrow']['step'];
$this->_sections['vdorevrow']['first']      = ($this->_sections['vdorevrow']['iteration'] == 1);
$this->_sections['vdorevrow']['last']       = ($this->_sections['vdorevrow']['iteration'] == $this->_sections['vdorevrow']['total']);
?>
						<div class="message-block">
						 <h3><a href="<?php echo $this->_tpl_vars['videoReviewArr'][$this->_sections['vdorevrow']['index']]['link']; ?>
"><?php echo $this->_tpl_vars['videoReviewArr'][$this->_sections['vdorevrow']['index']]['name']; ?>
</a></h3>
						 <?php if ($this->_tpl_vars['videoReviewArr'][$this->_sections['vdorevrow']['index']]['photo'] != ''): ?>
						 <div class="message-img"><img src="uploaded/user_images/<?php echo $this->_tpl_vars['videoReviewArr'][$this->_sections['vdorevrow']['index']]['photo']; ?>
" width="57" height="50" border="0" /></div>
						 <div class="message-desc-right">
						  <p><?php echo ((is_array($_tmp=$this->_tpl_vars['videoReviewArr'][$this->_sections['vdorevrow']['index']]['review_comment'])) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
</p>
                         </div>
						 <?php else: ?>
						 <div class="message-desc">
						 
						 <p><?php echo ((is_array($_tmp=$this->_tpl_vars['videoReviewArr'][$this->_sections['vdorevrow']['index']]['review_comment'])) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
</p>
						  </div>
						 <?php endif; ?>
						 <p class="post">
						 <span>Video</span> : <a href="videodetails.php?video_id=<?php echo $this->_tpl_vars['videoReviewArr'][$this->_sections['vdorevrow']['index']]['video_id']; ?>
"><?php echo $this->_tpl_vars['videoReviewArr'][$this->_sections['vdorevrow']['index']]['video_title']; ?>
</a><br /><br />
						 <span>Reviewer</span> : <?php echo $this->_tpl_vars['videoReviewArr'][$this->_sections['vdorevrow']['index']]['user_type']; ?>
<br  />
						 <span>Posted on</span> : <?php echo $this->_tpl_vars['videoReviewArr'][$this->_sections['vdorevrow']['index']]['review_date']; ?>
</p>
						 <div class="clear"></div>
					  </div>
					 <?php endfor; endif; ?>
					 <?php else: ?>
					  No record found
					<?php endif; ?> 
						
					</div>
					
				</div>
         </div>

          
          
          
          
         
         
      </div>
      
      
      
      
      <div class="clear"></div>
   </div>